﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EIS.Obj
{
    public static class EISConstant
    {
        public static string ClientCacheTableName = "ClientCache";
        public static string ClientConfigTableName = "BasicConfig";
        public static string ClientLayoutTableName = "LayoutCache";
        public static string SAPConnectionTableName = "UserSAPConnections";
        private static string ReadUnreadTableSuffix = "_Read";
        private static string SchemaTableSuffix = "_Schema";
        private static string LayoutTableSuffix = "_Layout";
        private static string StatusTableSuffix = "_Status";
        public static string EISJavaServerMainID = "EISSYSMAINID";
        public static string EISTimeStamp = "EISSYSTIMSTP";
        public static string EISItemUnread = "EISITEMUNREAD";
        public static string EISItemStatus = "EISITEMSTATUS";
        public static string EISSFObjID = "SFObjId"; 

        public static string FunctionUpdateTableName = "FunctionLastUpdateTimeStamp";
        public static DateTime MinDate = new DateTime(1970,1,1);
        public static DateTime MaxDate = new DateTime(2200, 12, 31);

        public static string GetFunctionDataTableName(string functionID)
        {
            return functionID;

        }
        public static string GetReadUnreadTableName(string functionID)
        {
            return functionID + ReadUnreadTableSuffix;

        }
        public static string GetSchemaTableName(string functionID)
        {
            return functionID + SchemaTableSuffix;

        }
        public static string GetLayoutTableName(string functionID)
        {
            return functionID + LayoutTableSuffix; 

        }

        public static string GetStatusTableName(string functionID)
        {
            return functionID + StatusTableSuffix; 
        }
    }
}
